{extend  name="manage@public/layout" /}
{block name="style"}
<style>
.mini-navbar{background: white;}
.form-group{height: 34px;}
.form-group label{float: left;clear:both;text-align: right;}
.form-group div{float: left;}
</style>
{/block}
{block name="content"}
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <form method="POST" action="">
                <input type="hidden" name="id" value="{$info.id}" />
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">所属父级</label>
                    <div class="col-sm-5">
                        <select name="pid" class="form-control m-b">
                            <option value="0">顶级菜单</option>
                            {$menutree|raw}
                        </select>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">菜单名称</label>
                    <div class="col-sm-5">
                        <input type="text" required name="title" value="{notempty name="info.title"}{$info['title']}{/notempty}" class="form-control">
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">节点</label>
                    <div class="col-sm-5">
                        <input type="text"name="action" placeholder="节点" value="{notempty name="info.action"}{$info['action']}{/notempty}" class="form-control">
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">图标</label>
                    <div class="col-sm-5">
                        <input type="text" placeholder="图标" name="icon" value="{notempty name="info.icon"}{$info['icon']}{/notempty}" class="form-control">
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">排 序</label>
                    <div class="col-sm-5">
                        <input type="text"name="sort" placeholder="" value="{$info['sort']}" class="form-control">
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">状 态</label>
                    <div class="col-sm-5">
                        <div class="radio i-checks">
                            <label><input type="radio" name="type" {eq name="info['type']" value="1"}checked{/eq} value="1"> <i></i> 隐藏</label>
                            <label style="float:none;"><input type="radio" name="type" {eq name="info['type']" value="2"}checked{/eq} value="2"> <i></i> 显示</label>
                        </div>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div style="text-align: center;border-top: none;" class="modal-footer">
                    <button class="btn btn-primary btn-payment btn-m">确定</button>
                </div>
            </form>
        </div>
    </div>
    {/block}
    {block name="script"}
{/block}